﻿<%@ page language="java" import="java.util.*,org.hyy.vo.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>增加商品</title>

	<link href="css/index.css" rel="stylesheet" type="text/css" />
	<link href="css/register.css" rel="stylesheet" type="text/css" />
  </head>
  
  <body>
	<%@include file="../public/head.jsp" %>				
		<div id="hr-body">
		    <div class="hr-body-content">
			   <TABLE class=hr-body-layout width="100%">
				  <TBODY>
				  <TR>
				    <%@include file="../public/adminleft.jsp" %>
				      <TD class=hr-bl-right vAlign=top>
				      		<H2>欢迎进入管理菜单->添加商品</H2>
				      			 <form action="addproduct" method="post">
				      			 <input type="text" name="step" value="2" style="display:none" />
				       			<table cellpadding="0" cellspacing="0" width="100%">
									<tbody>
									<tr>
										<td colspan="2" class="header">产品添加 - 必填内容</td>
									</tr>
									<tr>
										<td width="21%">产品名称:</td>
										<td>
											<input name="name" size="25" maxlength="25" type="text" style="float:left"/> 
										</td>
									</tr>
									
									<tr>
										<td>市场价格:</td>
										<td><input name="normalPrice" size="25" type="text" style="float:left"></td>
									</tr>
									<tr>
										<td>会员价格:</td>
										<td><input name="memberPrice" size="25" type="text" style="float:left"></td>
									</tr>
									
									<tr>
									<td>所属类别</td>
									<td>
										<select name="categoryId"  style="float:left">
												<s:iterator value="categories" id="category">
												<option value="${category.id}">${category.name}</option>
												</s:iterator>
										</select>
									</td>
									</tr>
									
									<tr>
									<td valign="top">产品描述:</td>
									<td><textarea name="descr" cols="60" rows="5" id="descr" style="float:left"></textarea></td>
									</tr>
									</tbody>
				       			</table>
				       			<input type="submit" value="添加" style="margin:10" />&nbsp;&nbsp;<input type="reset" value="重置" style="margin:10" />
				       			</form>	
					</TD>
				</TR>
			</TBODY>
			</TABLE>
			</div>
		</div>
     	
		<%@include file="../public/foot.jsp" %>
  </body>
</html>
